package com.czl.lunt.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class Swagger {
    @Bean
    public OpenAPI myOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("lunt")
                        .description("lunt API")
                        .version("v1.0.0")
                        .contact(new Contact()
                                .name("duyue")
                                .email("17815133370@163.com")));
    }

}
